pip换源 1. 常见国内源 # 豆瓣 https://pypi.doubanio.com/simple/ # 阿里云 https://mirrors.aliyun.com/pypi/simple/ # 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ h ...
分类:
其他好文 时间:
2020-12-04 11:46:04
阅读次数:
25
simple js 题目描述:小宁发现了一个网页,但却一直输不对密码。(Flag格式为 Cyberpeace{xxxxxxxxx} ) 打开题目后,有一个Enter password框,要求输入密码,随便输入“123” 输入“123”结果为 开发者工具F12查看页面源代码 将JS代码复制出来进行分析 ...
分类:
Web程序 时间:
2020-12-02 12:25:20
阅读次数:
12
#include<iostream> #include<string> using namespace std; void getNext(string s, int *nex) { nex[0] = -1; int i = 0, j = -1; int len = s.length(); whil ...
分类:
其他好文 时间:
2020-12-01 12:22:41
阅读次数:
7
int countLargestGroup(int n){ int hash[37]={0}; int map[10001]={0}; int i, sum, tmp, max=0, cnt=0; for(i=1; i<=n; i++){ map[i]=map[i/10]+i%10; hash[ma ...
分类:
其他好文 时间:
2020-12-01 12:05:58
阅读次数:
4
Codeforces Round #686 (Div. 3)E. Number of Simple Paths 题意 给你n个点n条边的图,让你求树上的简单路径数。 简单路径:从a->b的方法,需要注意的是1->2>3,3->2->1算一种 思路 显然建成后的图是一棵树多了一条边,这种图又叫环基树。 ...
分类:
其他好文 时间:
2020-11-30 16:12:17
阅读次数:
15
L2-3 深入虎穴 (25分) 建树、找根、找最深的叶子节点 #include<iostream> #include<cstdio> #include<vector> #include<algorithm> #include<cstring> #include<string> #include<ma ...
分类:
其他好文 时间:
2020-11-27 11:52:19
阅读次数:
53
1、SMTP(Simple Mail Transfer Protocol)即简单邮件传输协议它是一组用于由源地址到目的地址传送邮件的规则,由它来控制信件的中转方式。 2、smtplib就是对smtp的一种简单封装 3、基于文本邮件的发送 # 实现对邮件进行发送 import smtplib #ema ...
分类:
编程语言 时间:
2020-11-26 14:28:24
阅读次数:
5
今天有写过一个基于go-simple-mail 发送email 的demo,主要是复用连接,但是发现有问题,后边尝试了下 gomail,发现很不错没有问题,通过分析代码,还是go-simple-mail 实现上的问题 gomail参考demo 大部分不变,主要是修改关于email 发送的实现 参考代 ...
分类:
其他好文 时间:
2020-11-25 13:03:10
阅读次数:
18
摘自:https://www.oschina.net/p/sds?hmsr=aladdin1e1 软件简介 SDS(Simple Dynamic Strings)是一个C语言字符串库,设计中增加了从堆上分配内存的字符串,来扩充有限的libc字符处理的功能,使得: 使用更简便 二进制安全 计算更有效率 ...
分类:
其他好文 时间:
2020-11-24 12:11:05
阅读次数:
7
//将圆弧看成一段段的直线段,每个单元时间为dt //每一段路径长为 v1dt 和 v2dt //对于v2来说,存在径向速度vx(向外) 和 切向速度vy(绕圆) (vx^2 + vy^2 = v2^2) //又v1/R = w(角速度)= vy/r (r是运动过程中离圆心的距离)r属于[0, R] ...
分类:
其他好文 时间:
2020-11-20 11:47:20
阅读次数:
4